/*
 * main.h
 *
 *  Created on: 05.02.2012
 *      Author: Roma Jam
 */
#include "stm32f10x.h"
#include "windows.h"

#ifndef MAIN_H_
#define MAIN_H_

#define FIRM_VER    "v6.0.1"

enum sourse_t {
    Terminal, LabServer,
};
enum language_t {
    Russian, English
};
enum backlight_t {
    on, off
};

struct parametres_t {
    sourse_t cmd_sourse;
    language_t language;
    backlight_t backlight;
    window_name_t window_name;
    uint8_t string_pointer_main;
    uint8_t string_pointer_main_old;
    uint8_t string_pointer_settings;
    uint8_t string_pointer_settings_old;
    uint8_t string_pointer_drive;
    uint8_t string_pointer_drive_old;
    bool backlight_switch_pointer;
    bool cmd_switch_pointer;
    bool language_switch_pointer;
};

extern parametres_t parametres;

/* Loading
 *     for (x=0; x<96; x++) {
        LCD.GotoXY(x,6);
        LCD.WriteData(0xFF);
        LCD.PrintString(2,7, "Loading ", false);
        LCD.PrintString(10,7, "  ", false);
        LCD.PrintUint0_99(10,7, x, false);
        LCD.PrintString(13,7, "%", false);
    }
    LCD.PrintString(10,7, "    ", false);
    LCD.PrintString(10,7, "OK !", false);
    LCD.Clear();
    for (x=95; x>=1; x--) {
        LCD.GotoXY(x,6);
        LCD.WriteData(0x00);
        LCD.PrintString(2,7, "Loading ", false);
        LCD.PrintString(10,7, "  ", false);
        LCD.PrintUint0_99(10,7, x, false);
        LCD.PrintString(13,7, "%", false);
    }
 */

#endif /* MAIN_H_ */
